package cn.itcast.gjp.controller;

import java.util.List;

import cn.itcast.gjp.domain.ZhangWu;
import cn.itcast.gjp.service.ZhangWuService;

public class ZhangWuController {
	private ZhangWuService service = new ZhangWuService();
	public boolean deleteZhangWu(int zwid){
		boolean b = service.deleteZhangWu(zwid);
		return b;
	}
	public boolean editZhangWu(ZhangWu zw){
		boolean b = service.editZhangWu(zw);
		return b;
	}
	

	public List<ZhangWu> selectAll() {
		List<ZhangWu> list = service.selectAll();
		return list;
	}

	public List<ZhangWu> select(String startDate, String endDate) {
		return service.select(startDate, endDate);

	}
	public boolean addZhangWU(ZhangWu zw){
		boolean b = service.addZhangWU(zw);
		return b;
		
	}
}
